<!DOCTYPE html>
<html>
<head>
	<script type="text/javascript" src="__PUBLIC__/easyui/jquery.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/easyui/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/easyui/locale/easyui-lang-zh_CN.js"></script>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/easyui/themes/gray/easyui.css">
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/easyui/themes/icon.css">
	<script type="text/javascript" src="__PUBLIC__/js/add-tab.js"></script>
	<script type="text/javascript"> 
		function formatTime(val,row) {     
   	 		return new Date(parseInt(val) * 1000).toLocaleString().replace(/年|月/g, "-").replace(/日/g, " ");
		}     
	</script>
</head>
<body>
	<table id="tt" class="easyui-datagrid" title="请假申请记录" style="width:auto;height:auto"
			data-options="rownumbers:true,singleSelect:true,url:'__URL__/leaveData',toolbar:'#tb'" rownumbers="true" pagination="true" fitColumns="true" fit="true" pageSize="20" pageList="[20,40,80]">
		<thead>
			<tr>
				<th field="process_begin_id" width="80" align="center">请假人</th>
				<th field="leave_type" width="80" align="center">请假类型</th>
				<th field="leave_begin_time" width="80" align="center">开始时间</th>
				<th field="leave_end_time" width="80" align="center">结束时间</th>
				<th field="leave_date_num" width="80" align="center">天数</th>
				<th field="leave_reason" width="80" align="center">请假原因</th>
				<th field="leave_time" formatter="formatTime" width="80" align="center">申请时间</th>			
			</tr>
		</thead>
	</table>
</body>
</html>